#!/bin/bash
:<<-----------------------------------------------------------------------------
Date: 2020.1.17
Author: Che Yuzhi
ID: 201928000907028
Description: 
	Homework1.2
	编写一个脚本，以如下方式执行：./scriptname.sh <目录名> 其中
scriptname.sh 为脚本名， <目录名>为参数。
		1）如果目录存在，则输出目录内容
		2）如果目录不存在，则输出”Directory <目录名> does not exist.”.
			例如:
			[localhost] /home/cp > ./listdir.sh /etc/sysconfig
			Directory /etc/sysconfig contains the following item: macros.jpackage
			macros.prelink
			macros.solve macros.specspo macros.up2date platform
			[localhost] /home/cp > ./listdir.sh /etc/test
			Directory /etc/test does not exist.
----------------------------------------------------------------------------

if test -e ${1}
then
	echo `ls ${1}`
else
	echo "Directory ${1} deos not exist."
fi
